If you want to add to your form an edit control referencing a field in the main table use the function AddEditCtrl fromOnInitialUpdate() function of the form.
The following example associate the edit control IDC_EDIT_ID with the field IdCust:
OpenCursor( "SELECT * FROM [Orders]"); |
AddEditCtrl( IDC_EDIT_ID, "IdCust") |